package services;

import Model.Calculator;

public class BasicOperation {
	
	 public float add(Calculator calculator) {
	        return calculator.getA() +calculator.getB();
	    }
	
	 public float sustract(Calculator calculator) {
	        return calculator.getA() - calculator.getB() ;
	    }

	 public float multiply(Calculator calculator) {
	        return calculator.getA() * calculator.getB() ;
	    }

	 public float divide(Calculator calculator) {
	        return calculator.getA() / calculator.getB() ;
	    }

}
